<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\facade\Route;

Route::get('clean_cache', 'index/clean_cache');
Route::get('chapter/:article_id/:chapter_id', 'chapter/index');

//小说详情
Route::get('book/:article_id', 'article/index');
Route::get('author/:name', 'article/author');
Route::get('chapter_list/:article_id', 'article/chapter_list');

//排行榜
Route::get('top/:classify', 'top/index');
Route::get('top', 'top/index');

//ajax
Route::get('ajax/home_cid_list', 'api/home_cid_list');
Route::get('ajax/chapter_content', 'api/chapter_content');

//资讯
Route::get('news/list_:page', 'news/index');
Route::get('news/:id', 'news/detail');
Route::get('news', 'news/index');
//专辑
Route::get('tags/list_:page', 'tags/index');
Route::get('tags/:id', 'tags/detail');
Route::get('tags', 'tags/index');

//全本
Route::get('full_:page', 'index/full');
Route::get('full', 'index/full');

Route::get('search', 'index/search');
//分类
Route::get('classify/:where', 'category/index');
Route::get('classify', 'category/index');

return [];
